.class final Lnet/tsapps/topdeals/bi;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/DetailActitivty;

.field private final synthetic b:Lnet/tsapps/topdeals/objects/Voucher;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/DetailActitivty;Lnet/tsapps/topdeals/objects/Voucher;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/bi;->a:Lnet/tsapps/topdeals/DetailActitivty;

    iput-object p2, p0, Lnet/tsapps/topdeals/bi;->b:Lnet/tsapps/topdeals/objects/Voucher;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 3

    iget-object v0, p0, Lnet/tsapps/topdeals/bi;->a:Lnet/tsapps/topdeals/DetailActitivty;

    const-string v1, "clipboard"

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/DetailActitivty;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/text/ClipboardManager;

    iget-object v1, p0, Lnet/tsapps/topdeals/bi;->b:Lnet/tsapps/topdeals/objects/Voucher;

    iget-object v1, v1, Lnet/tsapps/topdeals/objects/Voucher;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/text/ClipboardManager;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/bi;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/DetailActitivty;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "Code \""

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lnet/tsapps/topdeals/bi;->b:Lnet/tsapps/topdeals/objects/Voucher;

    iget-object v2, v2, Lnet/tsapps/topdeals/objects/Voucher;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\" wurde in die Zwischenablage kopiert."

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    return-void
.end method
